<template>
  <div>
    <svg :style="{ width, height }">
      <use :xlink:href="prefix + name" :fill="color" />
    </svg>
  </div>
</template>

<script setup lang="ts">
let pro = defineProps({
  prefix: {
    type: String,
    default: "#icon-"
  },
  name: {
    type: String
  },
  color: {
    type: String,
    default: "#000"
  },
  width: {
    type: String,
    default: "30px"
  },
  height: {
    type: String,
    default: "30px"
  }
})

</script>

<style scoped></style>